package com.jun.admin.core.model.aspect;

import com.fasterxml.jackson.annotation.JacksonAnnotationsInside;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.jun.admin.core.model.enums.DesensitizationEnum;
import com.jun.admin.core.model.serializable.DesensitizationJsonSerializable;

import java.lang.annotation.*;

/**
 * @author yuejun.li
 * @date 2024/7/1 14:30:02
 */
@Target({ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@JacksonAnnotationsInside
@JsonSerialize(using = DesensitizationJsonSerializable.class)
public @interface Desensitization {

    /**
     * 脱敏策略
     */
    DesensitizationEnum value();
}
